package com.luminary.demo.authentication.core.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.provider.token.TokenEnhancer;

import com.luminary.demo.authentication.core.security.JwtTokenEnhancer;

/**
 * 
 * 安全相关配置
 * @author wulinfeng
 *
 */
@Configuration
public class SecurityConfiguration {

	/**
	 * 自定义用户信息
	 * @return
	 */
	@Bean
	public TokenEnhancer jwtTokenEnhancer() {
		return new JwtTokenEnhancer();
	}
	
}
